<html>
    <head>
        <script src="../../modules.js"></script>
        <script>require('environment.js').setDebug();</script>
    </head>
    <body>
        <script type="text/javascript" language="javascript">
        var test = require('test.js');
        test.listenReady(function () {

        var environment = require('environment.js');
        var http = require('http.js');
        test.report(environment, 'url');
        test.assertEq(
            requireRelative('requireRelative.js').module.url,
            http.relative(
                'requireRelative.js',
                environment.url
            )
        );
            
        }); /* listen ready */
        </script>
    </body>
</html>
